package com.demo;

import com.demo.my.Util.DBUtil;

import java.sql.Connection;
import java.sql.SQLException;
import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

public class Test {
    public static void main(String[] args) {
        Date date = new Date();
        SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd a HH:mm:ss");
            String format = sdf1.format(date);
        System.out.println(format);
        String[] s = format.split(" ");
        for (String string : s) {
            System.out.println(string);
        }

    }
}
